//
//  CLRMBottomView.m
//  CLBrowser
//
//  Created by 梁慧聪 on 2022/7/27.
//

#import "CLRMBottomView.h"

@interface CLRMBottomView ()

@end

@implementation CLRMBottomView

- (void)addSubviews {
    [super addSubviews];
    
    self.progressView = [[CLRMProgressView alloc]initWithReadMenu:self.readMenu];
    [self addSubview:self.progressView];
    
    self.funcView = [[CLRMFuncView alloc]initWithReadMenu:self.readMenu];
    [self addSubview:self.funcView];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.progressView.frame = CGRectMake(0, 0, self.frame.size.width, CL_READ_MENU_PROGRESS_VIEW_HEIGHT);

    self.funcView.frame = CGRectMake(0, CGRectGetMaxY(self.progressView.frame), self.frame.size.width, CL_READ_MENU_FUNC_VIEW_HEIGHT);
}
@end
